home *** CD-ROM | disk | FTP | other *** search
- #ifndef __TRIGONOMETRY_H_
- #define __TRIGONOMETRY_H_
-
- /* This file contains simplified but quick trigonometry.
- sin() and cos() returns 1000 * ::sin() or 1000 * ::cos()
- */
-
- struct Trigonometry
- {
- int* sin_table;
- Trigonometry();
- ~Trigonometry() { delete sin_table; }
- int sin(int alpha);
- int cos(int alpha) { return sin(90 - alpha); }
- };
-
- #endif __TRIGONOMETRY_H_